package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import scala.Int;

import java.io.Serializable;

/**
 * <p>
 * 素材管理
 * </p>
 *
 * @author chenxuebin
 * @since 2018-10-22
 */
@TableName("t_resource")
public class Resource extends Model<Resource> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 名称
     */
	private String name;
    /**
     * 图路径
     */
	private String pic;
	private String thumb;
    /**
     * 资源类别@1：商品；2：商品分类；3：滚动图；4：分类导航；5：应用logo；6：视频文件；6：PDF文件；
     */
	private Integer rtype;
	/**
	 * 素材类型@1：图片；2：语音；3：视频；4：pdf文件；5：word文档；6：ppt文档6：文件；
	 */
	private Integer mediatype;
	private Integer mheight;
	private String pixel;
	private Long uid;
	private Long mid;
	private Long mpid;
	private Long sid;
	private Long size;
	private Long duration;
	private Date createtime;
	private Date modifytime;
	private Long modifier;

	private String tbtype;
	private String fieldname;
	private String ywid;
	private String mediaid;
	private Long createdat;
	private Integer ismedia;
	private Integer isuse;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public Integer getRtype() {
		return rtype;
	}

	public void setRtype(Integer rtype) {
		this.rtype = rtype;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public Long getSize() {
		return size;
	}

	public void setSize(Long size) {
		this.size = size;
	}

	public String getThumb() {
		return thumb;
	}

	public void setThumb(String thumb) {
		this.thumb = thumb;
	}

	public Long getDuration() {
		return duration;
	}

	public void setDuration(Long duration) {
		this.duration = duration;
	}

	public Integer getMheight() {
		return mheight;
	}

	public void setMheight(Integer mheight) {
		this.mheight = mheight;
	}

	public String getPixel() {
		return pixel;
	}

	public void setPixel(String pixel) {
		this.pixel = pixel;
	}

	public String getTbtype() {
		return tbtype;
	}

	public void setTbtype(String tbtype) {
		this.tbtype = tbtype;
	}

	public String getFieldname() {
		return fieldname;
	}

	public void setFieldname(String fieldname) {
		this.fieldname = fieldname;
	}

	public String getYwid() {
		return ywid;
	}

	public void setYwid(String ywid) {
		this.ywid = ywid;
	}

	public String getMediaid() {
		return mediaid;
	}

	public void setMediaid(String mediaid) {
		this.mediaid = mediaid;
	}

	public Long getCreatedat() {
		return createdat;
	}

	public void setCreatedat(Long createdat) {
		this.createdat = createdat;
	}

	public Integer getIsmedia() {
		return ismedia;
	}

	public void setIsmedia(Integer ismedia) {
		this.ismedia = ismedia;
	}

	public Integer getIsuse() {
		return isuse;
	}

	public void setIsuse(Integer isuse) {
		this.isuse = isuse;
	}

	public Integer getMediatype() {
		return mediatype;
	}

	public void setMediatype(Integer mediatype) {
		this.mediatype = mediatype;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Resource{" +
			"id=" + id +
			", name=" + name +
			", pic=" + pic +
			", rtype=" + rtype +
			", uid=" + uid +
			", mid=" + mid +
			", mpid=" + mpid +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			", modifier=" + modifier +
			"}";
	}
}
